# c
# pip install llama-index-embeddings-instructor

# pip install llama-index-embeddings-ollama
from llama_index.embeddings.huggingface import HuggingFaceEmbedding



# 本地模型
def embed_model_local_bge_small(**kwargs):
    embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-small-zh-v1.5",
                                       cache_folder=r"C:\llms",
                                       **kwargs)
    return embed_model


if __name__ == "__main__":
    embed_model = embed_model_local_bge_small()
    print(embed_model)